<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			a{
				background-color: #00FFFF;
				padding: 2em 0;
			}
			div{
				background-color: #CD0000;
			}
		</style>
	</head>
	<body>
		<a href="#">我是连接</a>
		<div>我是小狗</div>
		<script type="text/javascript">
			document.querySelector("a").onclick=function(){
				console.log("a");
			}
		</script>
	</body>
</html>
